<script type="text/javascript">
  function checkForm(){

    if(form1.sku.value == ''){
  
      alert('SKU不能为空！');
      form1.sku.focus();
      return false;
    }
    
    if(form1.sku_name.value == ''){
        alert('SKU名称不能为空！');
        form1.sku_name.focus();
        return false;
    }
    if(form1.sku_quality.value == ''){
  
      alert('数量不能为空！');
      form1.sku_quality.focus();
      return false;
    }

    if(form1.remarks.value == ''){
        alert('不合格原因不能为空！');
        form1.remarks.focus();
        return false;
    }
    
   
  }
</script>

<body id="pageContent" class="well">
	
                  <div class="container">
                                
                          <div class="control-group">
                          </div>
                    <div class="row">
                      <div class="span6">
                        <form class="form-horizontal" action="" method="post" name="form1" onsubmit="return checkform()">
                          <fieldset>
                          
              		 		<div class="control-group">
														<label class="control-label" for="input01" >SKU</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku" id="sku" value="" />
                                </div>
													</div>
													<div class="control-group">
														<label class="control-label" for="input01">中文名称</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
												<div class="control-group">
														<label class="control-label" for="input01">规格</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_unit" id="sku_unit" value="" />
                                </div>
													</div>
													
													<div class="control-group">
														<label class="control-label" for="input01">数量</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
										<div class="control-group">
														<label class="control-label" for="input01">供应商</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													<div class="control-group">
														<label class="control-label" for="input01">单价</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
									<div class="control-group">
														<label class="control-label" for="input01">运费</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													
													<div class="control-group">
														<label class="control-label" for="input01">状态	</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
												
													<div class="control-group">
														<label class="control-label" for="input01">不合格处理表的ID</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													<div class="control-group">
														<label class="control-label" for="input01">采购人员</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													<div class="control-group">
														<label class="control-label" for="input01">不合格原因</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													<div class="control-group">
														<label class="control-label" for="input01">质检明细的ID</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													
													<div class="control-group">
														<label class="control-label" for="input01">不良品处理方式</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													<div class="control-group">
														<label class="control-label" for="input01">时间</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
														<div class="control-group">
														<label class="control-label" for="input01">实物操作人员</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													
													<div class="control-group">
														<label class="control-label" for="input01">实物操作出库时间</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													
													<div class="control-group">
														<label class="control-label" for="input01">VMI预约单号</label>
                                <div class="controls">
                                  <input type="text" class="input-xlarge"  name="sku_name" id="sku_name" value="" />
                                </div>
													</div>
													
													
													
													
															 <div class="control-group">

                                <!-- Textarea -->
                                <label class="control-label">入库原因（质检不合格原因）</label>
                                <div class="controls">
                                  <div class="textarea">
                                        <textarea type="" class="" style="margin: 0px; width: 272px; height: 117px;" name="sku_remarks" id="sku_remarks" > </textarea>
                                  </div>
                                </div>
              		 							</div>
													
                          <div class="control-group">
                                <label class="control-label"></label>
                                <!-- Button -->
                                <div class="controls">
                                 <input type="submit" value="添加" />
                                </div>
                              </div>
          
               </div>
                          </fieldset>
                        </form>
                      </div>
                      
                      </div>
                    </div>
                  </div>
                  </body>
 
